package com.wxisme.mediator;

public class Client {
	public static void main(String[] args) {
		Mediator mediator = new ConcreteMediator();
		
		Colleague colleagueA = new ConcretColleagueA();
		mediator.addColleague("ConcretColleagueA", colleagueA);
		Colleague colleagueB = new ConcretColleagueB();
		mediator.addColleague("ConcretColleagueB", colleagueB);
		
		colleagueA.self();
		colleagueA.out();
		System.out.println("Finish job");
		colleagueB.self();
		colleagueB.out();
		System.out.println("Finish job");
		
		
	}
}
